package org.springblade.modules.repair.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Date 11:22 2023/5/5
 * @Description {
 *   电梯年审
 * }
 * @Author lsay
 **/
@Getter
@AllArgsConstructor
public enum ElevatorAuditTypeEnum {

	AUDIT(0,"年审"),

	NOT_AUDIT(1,"非年审");

	final int status;

	final String name;

	public static String getName(int status){
		ElevatorAuditTypeEnum[] values = ElevatorAuditTypeEnum.values();
		for (ElevatorAuditTypeEnum enumValue:values) {
			if(enumValue.getStatus()==status){
				return enumValue.getName();
			}
		}
		return null;
	}
}
